create procedure wp_GetStateObjectID
	@State int
as
	select ObjectID
		from Data
		where State = @State